<?php
import( 'de.ceus-media.framework.krypton.core.Action' );
/**
 *	Platfcrm Selector Actions.
 *	@package		mv2.action
 *	@extends		Framework_Krypton_Core_Action
 *	@uses			Example
 *	@author			Dritan Latifi <dritan@gmail.com>
 *	@since			14.07.2007
 *	@version		0.1
 */
/**
 *	Platfcrm Selector Actions.
 *	@package		mv2.action
 *	@extends		Framework_Krypton_Core_Action
 *	@uses			Example
 *	@author			Dritan Latifi <dritan@gmail.com>
 *	@since			14.07.2007
 *	@version		0.1
 */
class Action_Panel_ProjectSelector extends Framework_Krypton_Core_Action
{
	/**
	 *	Constructor.
	 *	@access		public
	 *	@return		void
	 */
	function __construct()
	{
		$request = Framework_Krypton_Core_Registry::getStatic('request');
		parent::__construct();
		$this->addAction( 'selectServer' );
		$this->addAction( 'selectProject' );
	}

	public function selectServer()
	{
		$request	= Framework_Krypton_Core_Registry::getStatic( 'request' );
		$session	= Framework_Krypton_Core_Registry::getStatic( 'session' );
		$session->set( 'serverId', $request->get( 'selectServer' ) );
	}

	/**
	 *	Sets the selected PlatformId in Session.
	 *	@access		protected
	 *	@return		void
	 */
	public function selectProject()
	{
		$request	= Framework_Krypton_Core_Registry::getStatic( 'request' );
		$session	= Framework_Krypton_Core_Registry::getStatic( 'session' );
		$session->set( 'projectId', $request->get( 'selectProject' ) );
	}
}
?>